package cn.lena.weblog.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author lena
 * @since 2021-04-17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)    //链式编程
public class Passage{

    private Integer passageId;

    private Integer userId;

    private LocalDateTime createDate;

    private String title;

    private String described;

    private String content;

    private Integer liked=0;

    private Integer visited=0;

    private LocalDateTime updateTime;

    private Integer isPrivate=0;        //私有

    private Integer isDraft=1;      //草稿

    private Integer deleted=0;

    private Integer isOriginal=1;       //原创

    private String originalPassageId;       //原创文连接

    private Integer catagoryId;

    private String catagoryName;        //分类名称

    private List<Keyword> keywords;     //关键词名称


}
